package com.zr.spring.xml;

import org.openjdk.jol.info.ClassLayout;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Solution {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:xml/xml-bean.xml");
        System.out.println("================");
        Student bean = (Student) context.getBean("student");
        System.out.println(bean);
        XmlBeanFactory bean1 = (XmlBeanFactory) context.getBean("&student");
        System.out.println(bean1.getMsg());

        bean.hashCode();
        System.out.println(ClassLayout.parseInstance(bean).toPrintable());
    }
}
